import Clay from "@csii/vx-clay";
import demo from "./demo.clay";
import painter from "./painter";
Clay.series("demo", painter);
new Clay({
  el: document.getElementById("root"),
  render: demo,
  data() {
    return {
      select:-1,
      radius:100,
      list: [
        {
          key: "A",
          value: 88,
        },
        {
          key: "B",
          value: 99,
        },
        {
          key: "C",
          value: 77,
        },
        {
          key: "D",
          value: 42,
        },
      ],
    };
  },
  methods: {
    doit(target) {
      // console.log(target);
      // this.radius = this.radius ==80?100:80 
      this.select = target.subRegion
    },
  },
});
